package com.baijiaoxi.common.utils.jdk;

public class ObjectUtil {

    public static String nullToEmptyStr(Object... array) {
        StringBuilder sb = new StringBuilder();
        if (array != null && array.length > 0) {
            for (int i = 0; i < array.length; i++) {
                Object obj = array[i];
                if (obj != null)
                    sb.append(obj.toString());
                else sb.append(" ");
            }
        }
        return sb.toString();
    }
}
